<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
  <style>
    div{
      width: 200px;
      height: 50px;
      border:1px solid red;
      /*水平对齐方式*/
      text-align: center;
      /*设置行高:多行控制间距,单行控制垂直居中*/
      line-height:50px;
      /*文本修饰*/
      text-decoration: overline;
      text-decoration: underline;
      text-decoration: line-through;
      text-decoration: none;
      /*文本阴影:颜色 x偏移值 y偏移值 浓度(值越小越清晰)*/
      text-shadow: red 5px 5px 0px;
      /*字体大小*/
      font-size:30px;
      /*字体加粗*/
      font-weight: bold;
      /*设置斜体*/
      font-style:italic;
      /*设置字体*/
      font-family: cursive;
    }
    /*超链接自带下划线,此方法可以去除下划线*/
    a{text-decoration: none}
    h1{
      /* h1自带加粗,normal去掉加粗*/
      font-width: normal;
      /* 设置字体大小+字体*/
      font:15px cursive;
    }

  </style>

</head>
<body>
<h1>你好</h1>
<a href="">超链接</a>
<div>文本字体相关</div>
</body>
</html>